|
Author |
Thread Statistics | Show CCP posts - 0 post(s) |

Shin Chogan
Blueprint Haus Get Off My Lawn
15
|
Posted - 2013.09.13 16:07:00 -
[1] - Quote
Ok as others have said its probably time a new thread was started on this :
Please welcome in v 1.3.1 of this amazing SMF mod 
Brief Description :
This is a Module for SMF 2 this Adds security and access control using Eve API keys to your forum
It also provides TeamSpeak 3 and Jabber (Openfire) integration.
Release Download and Bug Reporting : https://github.com/barneycg/temars-eve-api
Changes :
- Updated API validations to use the 403 Forbidden messages CCP now return.
- Removed support for Legacy style api keys.
- Added a CAK mask check - API's must have at least CharacterSheet, FacWarStats and one of the private or public CharacterInfo options selected.
- A not fully tested set of Scheduled Events to perform the automated API polling for people without system access.
Notes/Fixes :
- Keys that return a 403 forbidden are never checked again by the automatic polling. If a key is returning 403 forbidden because it has expired and the user re enables it they can force a recheck of the key from in their profile.
- The Corp ticker in the users "Real Name" is now automatically updated on Api update (both manual and automatic)
- The Scheduled Task to poll the API keys is the only one that has been tested the Jabber and both TS ones are untested as I don't have the environment set up to allow me to do that ... I'm looking for a brave soul to give them a try please :)
Version is Currently 1.3.1 r2
Please take note of some of these changes your users will loose access to your forums, Teamspeak and Jabber if they are using legacy keys or keys with the wrong mask. Don't just install this without adequate preparation
and yes ISK donations are greatly appreciated 
|

Shin Chogan
Blueprint Haus Get Off My Lawn
17
|
Posted - 2013.09.13 21:20:00 -
[2] - Quote
Manic Velocity wrote:Eh, sorry to burst the bubble. I'm now experiencing an error when attempting to add an API key to an existing account: Quote:[ERROR] Api must be of Type Character and show ALL toons :) I triple-checked to make sure the key was to show all characters, and even created an entirely new key to show all characters. But the error persists. Thoughts? Also, in checking the mod settings, this error appears at the top of the page: Quote:API System Screwed - Can't fetch Toons : bool(false) API System Screwed - Can't Fetch Standings : bool(false) There is a problem fetching Standings : int(9999)
|

Shin Chogan
Blueprint Haus Get Off My Lawn
17
|
Posted - 2013.09.17 11:56:00 -
[3] - Quote
Any more feedback on this ... my forums have been running this (albeit using the cronjobs and no TS integration) for a couple of weeks (My guys love me for all the testing I do on them ) and not run into any problems like this but I've had a similar report via a bug raised on git hub which has raised a few warning bells.
If it isn't working for you can we work out a way to get together and identify the reason. From the error It looks like all API fetches are failing. I did hear a rumor of CCP API server issues the other day ... could that have been the cause ? |

Shin Chogan
Blueprint Haus Get Off My Lawn
17
|
Posted - 2013.09.17 14:39:00 -
[4] - Quote
Manic Velocity wrote:My testing was done on our dev site, which apparently was not an exact mirror of our production site.
The only hiccup we experienced on the prod environment was that the mod may have wiped out the registration agreement that users must agree to before registering. The text is gone, but the user still has to click on "I accept the terms of the agreement". So they are basically agreeing to nothing. :P
It's not a big deal really. And we're not even sure if the TEA mod is what caused it. I wish I had more info for you but I have very limited access to our prod site. Getting the mod installed at all has been a ridiculously long process, simply because I have to keep lighting a fire under our admin's ass.
We only use the mod to grant forum access. TS access is handled manually since our community members play other games besides EVE. The Scheduled Tasks seem to be working as intended, though. Users input their API info and are granted appropriate access within a few minutes.
OK ... so all in all it does appear to be working on your prod site ? No error messages when you go to the Mod settings page for TEA ?
TEA "shouldn't" touch the registration agreement and it is certainly still present on both my production and dev forums. |

Shin Chogan
Blueprint Haus Get Off My Lawn
21
|
Posted - 2013.09.21 14:19:00 -
[5] - Quote
OwenJ wrote:G'day Guys,
I am getting the following error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 File: D:\sites\owen1brunker\recursiveerror.com\home\Sources\TEA.php Line: 2465
Does anyone have any ideas?
Thanks in advance
Cheers OwenJ
Can I get a little more detail ... what were you doing when you got this error message ? Have you upgraded from an earlier version or is this a new installation ? |

Shin Chogan
Blueprint Haus Get Off My Lawn
21
|
Posted - 2013.09.23 11:09:00 -
[6] - Quote
OwenJ wrote:Shin Chogan wrote:OwenJ wrote:G'day Guys,
I am getting the following error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 File: D:\sites\owen1brunker\recursiveerror.com\home\Sources\TEA.php Line: 2465
Does anyone have any ideas?
Thanks in advance
Cheers OwenJ
Can I get a little more detail ... what were you doing when you got this error message ? Have you upgraded from an earlier version or is this a new installation ? I clicked the "Run Full Member Check Now" which is under "CHECKS" on the Temars Eve Api menu. Background HistoryI didn't do the original install of SMF. The CEO of a corp, who recently left our alliance, was the person who did the original hosting, installation and forum maintenance. He gave me a copy of the database and forums. The Temars version number was a bit weird I think. 1.3.0.175. The version number of SMF was 2.0.4, which I patched to SMF 2.0.5. It was with this environment that I was getting errors. I don't know if the errors existed before I patched. The first error which was reported by Temars was a database version mismatch. From my research I couldn't identify a database change between SMF 2.0.4 and SMF 2.0.5, so I changed the version number in the database. This is when the current message started happening. I have, since my post for help, uploaded a vanilla SMF 2.0.5 as per the SMF manual and then deleted all package mods. I then uploaded and installed Temars Eve API Version 1.3.1 R2. In running the same option, "Run Full Member Check Now", I still get the same error message but on a different line number. The error is the same error within the same PHP function Settings_checks($scripturl) and it occurs when doing an SQL SELECT via a call to $this -> smcFunc['db_query']. I can't fault the SQL statement. A similar SQL statement runs perfectly in the MySQL query tool. I say similar because I manually resolved the {db_prefix} macro in my test. It should resolve to ''. I suspect this is where the problem might be. The forums themselves are working so I cant see the null value used for db_prefix being an issue. I hope this fills you in. Thanks again. OwenJ
What is the new line number ? This is an interesting one ... I can't see expanding {db_prefix} to null would be a problem. |

Shin Chogan
Blueprint Haus Get Off My Lawn
21
|
Posted - 2013.09.24 08:14:00 -
[7] - Quote
Xornicon Altair wrote:Fresh install of both SMF2 and TEA. So far, everything seems to be going smoothly until I try to add a rule and get the following: Everything else works fine, but, it seems to think that the server goes down while I'm trying to submit the rule. Everything else on the server functions just fine, and this only occurs when I'm trying to set a rule. Browser is Chrome; Same error occurs with testing in IE. Server is running Debian Linux x64, Apache2, PHP5 Any ideas?
Can you get the error out of your apache error logs please ... this doesn't happen for me either on my "production" forums or the one I use for testing.
|

Shin Chogan
Blueprint Haus Get Off My Lawn
21
|
Posted - 2013.09.24 18:26:00 -
[8] - Quote
raze 911 wrote:Quote:[ERROR] Api must be of Type Character and show ALL toons :) i clear my smf_tea_cache but have this msg again. api is correct
This error will only happen if CCP's servers are returning bad xml/html or if as the error says the key you have provided doesn't show all the toons on the account. You can have the mask correct but if the key is only for a specific character it will not work. |

Shin Chogan
Blueprint Haus Get Off My Lawn
22
|
Posted - 2013.09.24 20:29:00 -
[9] - Quote
Xornicon Altair wrote:Shin Chogan wrote:Can you get the error out of your apache error logs please ... this doesn't happen for me either on my "production" forums or the one I use for testing. [Tue Sep 24 19:51:06 2013] [error] [client 205.250.184.170] PHP Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/www/forum/Sources/TEA.php:1981\nStack trace:\n#0 /home/www/forum/Sources/TEA.php(1981): SimpleXMLElement->__construct('')\n#1 /home/www/forum/Sources/TEA.php(1630): TEA->settings_rules('http://blackwat...')\n#2 /home/www/forum/Sources/TEA.php(3417): TEA->Settings('http://blackwat...')\n#3 /home/www/forum/Sources/Admin.php(519): ModifyTEASettings()\n#4 [internal function]: AdminMain()\n#5 /home/www/forum/index.php(151): call_user_func('AdminMain')\n#6 {main}\n thrown in /home/www/forum/Sources/TEA.php on line 1981, referer: http://blackwatchsyndicate.com/forum/index.php?action=admin;area=tea;sa=rules;save
hmmm ....
Sorry to ask but can you give me a step by step of exactly how you get to that error ?
edit : Bah ... forget that ... I see where the issue is.
Edit 2: Fundamentally though the problem is because you are not getting back XML from the API servers. Trouble is the TEA code isn't handling that very well. |

Shin Chogan
Blueprint Haus Get Off My Lawn
22
|
Posted - 2013.09.26 13:27:00 -
[10] - Quote
Xornicon Altair wrote:Shin Chogan wrote:Edit 2: Fundamentally though the problem is because you are not getting back XML from the API servers. Trouble is the TEA code isn't handling that very well. That tells me WHAT the problem is, but, I have no idea how to fix it. It also fails to accept my own API key. Replace line 1981 in TEA.php with :
Quote: try{ $xml = new SimpleXMLElement($xml); } catch(Exception $e) { var_dump($xml); var_dump($e); die; }
This is not a fix ... the code will stop rather than give the error 500 but it will print some info that I need to see in order to tell what you are getting instead of expected XML |
|

Shin Chogan
Blueprint Haus Get Off My Lawn
22
|
Posted - 2013.09.27 09:00:00 -
[11] - Quote
ok ... do any API related functions work ?
So return that section to how it was. Then got to line 91 in TEAC.php :
Quote: curl_close($ch);
Return $data;
change this to :
Quote: curl_close($ch); var_dump($data);die; Return $data;
Again this is just more debug. Tell me what the result is. Depending on your browser and what is returned you may well need to view the page source to get the full content of what is returned. |

Shin Chogan
Blueprint Haus Get Off My Lawn
22
|
Posted - 2013.09.27 10:51:00 -
[12] - Quote
Xornicon Altair wrote:Shin Chogan wrote:Again this is just more debug. Tell me what the result is. Depending on your browser and what is returned you may well need to view the page source to get the full content of what is returned. All it returned was this: That's even with looking at the page source. And no, no other API related functions work. An idea popped into my head. This server is freshly setup, I've never run anything else off of it. Is it possible that I missed a base pre-req? I can't think of anything that I missed... I got Apache2, PHP5, MySQL, curl, php5-mysql... I can't think of anything else that might be needed, but, did I possibly overlook something? EDIT: when I try to add my own API key for checking, it gives me this error: [ERROR] Api must be of Type Character and show ALL toons :) I've seen that before on here, so, I'll see if any of those fixes work for this. EDIT2: Nope, no changes. I'll await your response.
You are missing php5-curl ... BUT the code "should" warn you of this. If it isn't then we have another bug :)
|

Shin Chogan
Blueprint Haus Get Off My Lawn
22
|
Posted - 2013.09.27 18:55:00 -
[13] - Quote
Xornicon Altair wrote:Shin Chogan wrote:You are missing php5-curl ... BUT the code "should" warn you of this. If it isn't then we have another bug :) I've checked and it appears to be installed. On the possibility that there was something wrong with it, I removed it and reinstalled it and the same problem is occuring. Any other pre-reqs that might be missing?
No not really ... the server can get to api.eveonline.com ? |

Shin Chogan
Blueprint Haus Get Off My Lawn
22
|
Posted - 2013.09.30 09:09:00 -
[14] - Quote
Xornicon Altair wrote:xHjfx wrote:Xornicon Altair wrote:Pings go through just fine. I tried telnet, but that failed. I would not be surprised if they have telnet blocked. How else might I test? Telnet to port 443? Thanks. This worked flawlessly. So yes, I can contact the server without issue.
So you can connect to the api servers manually, you have php-curl installed but when it tries to make an API call you get nothing not even an error.
Silly clutch at straw here ... you do have https://api.eveonline.com set in the server field at the bottom of the Tea setting page ? |

Shin Chogan
Blueprint Haus Get Off My Lawn
22
|
Posted - 2013.09.30 09:53:00 -
[15] - Quote
Sweet ... Glad that fixed it coz I was out of ideas :) |

Shin Chogan
Blueprint Haus Get Off My Lawn
22
|
Posted - 2013.10.04 09:56:00 -
[16] - Quote
Diva Ex Machina wrote:A minor thing: On the modify profile > jabber tab page, the jabber account is not created until I go through the process of selecting an alt character > change profile > selected main character > add password > change profile.
Is this a problem you're aware of or do I just have a borked layout or something?
Hmm ... not aware of that one ... when you say select alt character where are you selecting this.
Just as a note the Jabber account setup is a completely seperate step so you register/add api to your forum account (you have to save your profile if you are adding an api) that then go to the jabber page and select a toon and set a password and save that. |

Shin Chogan
Blueprint Haus Get Off My Lawn
22
|
Posted - 2013.10.04 11:20:00 -
[17] - Quote
Diva Ex Machina wrote:Thanks for replying so quickly. Shin Chogan wrote:Diva Ex Machina wrote:A minor thing: On the modify profile > jabber tab page, the jabber account is not created until I go through the process of selecting an alt character > change profile > selected main character > add password > change profile.
Is this a problem you're aware of or do I just have a borked layout or something? Hmm ... not aware of that one ... when you say select alt character where are you selecting this. Just as a note the Jabber account setup is a completely seperate step so you register/add api to your forum account (you have to save your profile if you are adding an api) that then go to the jabber page and select a toon and set a password and save that. That's exactly the tab page I am talking about.  Under the Profile menu item, select TEMAR's Eve Api Go to the Jabber tab page If I select my main char, enter a password and save it (by clicking change profile), the jabber account isn't created. No messages other than your profile is updated. I thought for a while my settings were bad or something until I tried selecting an alt char and saving, and then selecting my main again and saving again, then noticed the jabber account was created.. I deleted the account on jabber and tried again. Same thing. I tested it a few more times and same thing every time. I am not sure why that is exactly. If you can give a hint about which file the jabber form is in perhaps I can go in and look at the code and see what the problem might be. Also, do you know of any plugins available for SMF that support eve fittings and other in game browser functions? I had a search around and the only ones I could find seem to be abandoned. In my opinion this is the only area in which SMF doesn't surpass phpBB as a forum for Eve alliances.
I can't replicate that behaviour at all. I had a test account with no API key. Added key and hit save. Selected main character and hit save. Went to Jabber page (main toon was already selected) added password and hit save ... look on jabber server and the account is there.
All the Jabber stuff is in TEA_Jabber.php and TEA_Jabber_OF.php ( _OF is the utility functions most of which are unused :) )
As for the rest of it no I don't know of any fittings/IGB functions. What exactly are you looking for in terms of IGB functions ?
|

Shin Chogan
Blueprint Haus Get Off My Lawn
23
|
Posted - 2013.10.06 12:13:00 -
[18] - Quote
Raze / Gunner is the 1.3.1 release the first version of the Temars plugin that you have installed in your forum ? Assuming this is the case I'm going to suggest checking on your admin tea settings page ... is there a value in "Server to get API data from"
It needs to read https://api.eveonline.com |

Shin Chogan
Blueprint Haus Get Off My Lawn
24
|
Posted - 2013.10.06 21:52:00 -
[19] - Quote
Gunner Anneto wrote:Acutally, another question. Does the TS integration work if the TS server is NOT using a mysql db? I am connecting to the server fine as I am seeing all ts groups. Only rule is to add forum group to corresponding ts group and when clicking register I keep getting "[ERROR] Unknown Unknown method"
Fraid not ... mysql only. |

Shin Chogan
Blueprint Haus Get Off My Lawn
24
|
Posted - 2013.10.11 18:28:00 -
[20] - Quote
Newt On Grid wrote:I'd posted this in error in the 1.2.1 forum topic so I'm just cross posting this question here as I'm using the 1.3.0 R179 version of TEA.
I'm having some trouble with the Skills rule set. I was trying to use them to assign a secondary group of Capital Pilots, but when i use something simple such as 'Amarr Carrier' with a skill level requirement of 4 it doesn't assign the group to anyone. I did have a Corp ID AND attached but was struggling with it working so lowered to just 1 skill to test.
Is there a particular syntax for inputting the skill names? How can I debug why it isn't matching? I've tried Skill ID's and the Names, nothing seems to work.
I should say i've managed to assign secondary groups using corp titles and roles successfully. Just can't seem to get the skills correct.
Edit - I've updated to 1.3.1 r4
Still unable to use the Skills correctly, getting the same results as above.
Yep I've tested this on my boards and I'm seeing the same issue along with some errors in the board error log about undefined variables ... I'll need to investigate :)
|
|

Shin Chogan
Blueprint Haus Get Off My Lawn
24
|
Posted - 2013.10.29 15:46:00 -
[21] - Quote
Ynot Eyob wrote:This is a heads up for Windows Servers.
If you have issues pulling the API (Empty chars) it can be your server SSL cert which has exspired. curl will not Work if this is the case.
Eh ? You don't need a cert on your server to connect to the CCP api url ... or am I mistaking what you mean ?
edit ... do you mean the CA cert ? |

Shin Chogan
Blueprint Haus Get Off My Lawn
24
|
Posted - 2013.10.31 15:37:00 -
[22] - Quote
Ynot Eyob wrote:Shin Chogan wrote:Ynot Eyob wrote:This is a heads up for Windows Servers.
If you have issues pulling the API (Empty chars) it can be your server SSL cert which has exspired. curl will not Work if this is the case. Eh ? You don't need a cert on your server to connect to the CCP api url ... or am I mistaking what you mean ? edit ... do you mean the CA cert ? Ya CA Cert You need a selfsigned cert with the curl calls you are making, thats why i had so many issues with your version. You can turn it off in the calls (Dont have code in head) so after editing your code, you version worked fine. http://www.devcha.com/2009/10/how-to-execute-curl-and-skip.htmlhttp://curl.haxx.se/docs/sslcerts.html
Ah ... Php/Curl for Windows doesn't ship with a CA Cert bundle and it doesn't use the system certs :FP I'll try and work out a way round it for the next version. |

Shin Chogan
Blueprint Haus Get Off My Lawn
24
|
Posted - 2013.10.31 15:51:00 -
[23] - Quote
thiswaymucker wrote:ok mate, first great work your doing here.
I got it to install by uninstalling the old one first.
it all seems to be working.
So how do i set it so it needs a full api key ?
Bit of a hack at present but if you find
$accessMask = (int)$xml;
Should be about line 156 in *path to forum*/Sources/TEA.php
then add just under it
if ($accessMask == 268435455) return True; else return False;
that should cause people to see an error if they haven't entered a Full API key. |

Shin Chogan
Blueprint Haus Get Off My Lawn
24
|
Posted - 2013.11.11 13:14:00 -
[24] - Quote
Yoshmoto wrote:Hey, Getting errors on this Package. Nothing seems to be working lol. Its not pulling any API's I can ping the api server. I have: XAMPP on a Windows 2k8 server. SMF 2.0.6 Temars EVE API 1.3.1 r4 Curl appears to be enabled in php.ini I don't think it is pulling the API properly. API PageDB ErrorScrewed Error
Assuming what Ynot was saying is correct then try finding :
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
on line 183 in TEAC.php and adding
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
on the next line.
|

Shin Chogan
Blueprint Haus Get Off My Lawn
24
|
Posted - 2013.11.15 10:17:00 -
[25] - Quote
1Gordon Gekko1 wrote:Alright, everything seems to working like a champ except for this one odd detail, when we have used go to their profile and try and use the eve avatar, it will pull up the right pic for whichever toon they select, but when they save it, we end up with just the broken pic image. this happens regardless of whatever size we set the avatar size to.
Thought? Something silly I am overlooking?
(Thanks for your time on this epic mod!)
I've not had this issue but that sounds more like a smf path/permissions problem to me rather than something specific to smf ... when you right click on the broken link image what is the path/filename ? You'll need to dig in there and see if the folder permissions are correct or if the path is even correct. |

Shin Chogan
Blueprint Haus Get Off My Lawn
24
|
Posted - 2013.11.15 10:38:00 -
[26] - Quote
Zenith Gravit wrote:I'm not sure if this have been covered in a previous thread or not, there was a little too much to read through. My corp has friends that are in NPC corps, the individuals are set light blue at the corporation, but are not being placed in the Blues group. Will TEA not work with individual character standings?
I don't think it was covered before ... I know I've not looked at that section of code ... it appears to only look at at the toons Alliance and Corp and compares that to the standings fetched from the master api key.
|

Shin Chogan
Blueprint Haus Get Off My Lawn
24
|
Posted - 2013.11.18 09:55:00 -
[27] - Quote
ShadowandLight wrote:any chance to add mumble support to this mod in the future?
Personally I use :
https://gitorious.org/mumble-scripts/mumble-scripts/source/32479fe3474a4a0fc60691425bcab3b8f2ba2e06:Authenticators/SMF/2.0
|

Shin Chogan
Blueprint Haus Get Off My Lawn
24
|
Posted - 2013.11.18 10:08:00 -
[28] - Quote
Zenith Gravit wrote:Shin Chogan wrote:Zenith Gravit wrote:I'm not sure if this have been covered in a previous thread or not, there was a little too much to read through. My corp has friends that are in NPC corps, the individuals are set light blue at the corporation, but are not being placed in the Blues group. Will TEA not work with individual character standings? I don't think it was covered before ... I know I've not looked at that section of code ... it appears to only look at at the toons Alliance and Corp and compares that to the standings fetched from the master api key. Ok, so players in NPC corps have to be manually added to a group. Fair enough. New question. it seems that if someone botches up their API key and tries to register with it, then gets a error, and tries to register again with the corrected key they get an error that the character already exists and I have to clear them out of the table. Do I have something setup wrong?
Hmmm .. I thought I'd fixed that - the current process is (or at least this is what is intended) :
Fill out registration form - gets character list. hit submit and account is registered. API key is then processed and groups are added per rules - it is at this point that the characters are added to the db.
So the questions are : What version are you running ? Where in the registration process did they get to ? In what way have they botched their API ? When you say register again ... exactly what are they doing ... from first registration attempt through to the error message ? |

Shin Chogan
Blueprint Haus Get Off My Lawn
24
|
Posted - 2013.11.24 09:29:00 -
[29] - Quote
1Gordon Gekko1 wrote:ok...after doing some digging, what it looks like it's doing is not appending the size.jpg to the character ID it's pulling from the API mod. So when I inspect the avatar element, it looks like: https://image.eveonline.com/Character/1088364566instead of: https://image.eveonline.com/Character/1088364566_128.jpgIf I fix the HTML manually on the page, it pulls the right pic down. Any more thoughts on why this would be? I set the entire board to 777 while testing, so I don't think it's permission issue...and it's got the right path, just not adding in the missing section to the end (which I think would be done by the mod, since you can set the size of the avatars you want used in the Temar API settings...it's just not actually doing it).
interesting ... where are you seeing this url ? When I look at a profile and inspect the element of the Avatar it is a url in my forum not in image.eveonline.com
|

Shin Chogan
Blueprint Haus Get Off My Lawn
24
|
Posted - 2013.11.26 14:37:00 -
[30] - Quote
Magenta Flori wrote:Having a hard time getting Jabber integration to work. Can you help? Not sure what I'm missing.
I have everything plugged into the Jabber section and enabled it however I see 0 traffic in the MySQL logs being generated from the mod. If I try to register a user I just get unable to match any groups but still no log entries.
I'm sure I'm missing something dumb?
Have you got any Jabber rules set up in TEA ? ... I believe an account has to match at least 1 Jabber rule before the account will be created on the openfire server. |
|

Shin Chogan
Blueprint Haus Get Off My Lawn
24
|
Posted - 2013.11.28 09:24:00 -
[31] - Quote
Magenta Flori wrote:[quote=1Gordon Gekko1][quote=Magenta Flori] It also seems that if I manually remove the corp list and standing files and re-run TEA_Cron.php I get an updated list and new files. I guess this is by design and I can just make a cron job around it.
Yes this is correct ... the corp list and standings files are created if they are not there and are updated every 24 hours. Just run the TEA_Cron.php and any of the other cron jobs as frequently as you like based on your security needs. I run the TEA_Cron every 2 minutes and it takes about 4 hours to go through every account in my forum.
|

Shin Chogan
Blueprint Haus Get Off My Lawn
24
|
Posted - 2013.11.28 15:44:00 -
[32] - Quote
Magenta Flori wrote:Sweet, thanks for the great work. It is supposed to give any details when you run it? Most of them give nothing but a prompt. Tea_Cron.php gives that reset id to zero or whatever message?
Nope no output ... simple reason being if you run it every 2mins and it output something cron generates an email to send you what would have appeared on the console if you send this to a real mailbox eventually even googles smtp servers bounce the emails as spam ... they don't even get to your spam folder. Go on ask me how I know 
The reset id to zero is output when it has done a complete run through all the accounts in your forum ... so for me I get one of these about every 4 hours but it will depend greatly on how many forum accounts or more precisely how many api keys you have and how quickly CCP's servers are working. |

Shin Chogan
Blueprint Haus Get Off My Lawn
24
|
Posted - 2013.12.03 13:19:00 -
[33] - Quote
vigilliann wrote:Hi,
I have a problem with your plugin for SMF... It seems that temars don't synchronize the database for openfire and so don't create the users... Can you help me about that?
I would'nt ask for help if there were enough doc of course but since there is none....
The jabber sync is actually 2 parts ... the db connection which gets the list of available groups in Openfire, and the use of the User Service plugin on Openfire to allow the creation and modification of users via an http interface.
If when you go to the Jabber rules section of Temars you can see any groups you have defined in Openfire (Obviously you need to have created some in there first :) ) then the problem is not the DB connection.
If you can see groups but users aren't being created in Openfire then you need to make sure you have the User Service plugin installed and correctly configured in Openfire.
also worth noting is you have to have at least one group mapping set up between SMF and Openfire for the user to be created on the Openfire server.
There is lots of info in the old thread : https://forums.eveonline.com/default.aspx?g=posts&t=8284
|

Shin Chogan
Blueprint Haus Get Off My Lawn
24
|
Posted - 2013.12.06 07:17:00 -
[34] - Quote
vigilliann wrote:Seems that is not the solution to my problem. the groups are visible in SMF, the user service is correctly configured because we can create new user with the URL : for example : hostname:port/plugins/userService/userservice?type=add&secret=passexample&username=testalamain&password=test&name=MonsieurTest& [email protected]&groups=Camarade Am I missing something here?
You say the groups are visible ... do you have any mappings defined ? |

Shin Chogan
Blueprint Haus Get Off My Lawn
24
|
Posted - 2013.12.06 10:36:00 -
[35] - Quote
vigilliann wrote:the rules you mean in SMF? if it's that, yeah it's activated.
the allowed ip's are blank and in mode 'accept' so normally it will accept all the connections no?
how is transfered the request to userservice?
It's just a curl call. Is SMF and Openfire on the same box ?
Try doing a packet trace on the Openfire Box and seing if you are seeing the user service being hit.
Have you a user that has gone to index.php?action=profile;area=tea;sa=jabber and selected a user and a password ? ... unless they do that no user will be created.
Only other thing I can suggest is you give me some logon details and I'll take a quick look. |

Shin Chogan
Blueprint Haus Get Off My Lawn
24
|
Posted - 2013.12.15 20:00:00 -
[36] - Quote
Inara Talamasca wrote:Just installed SMF2.0.6 and TEA 1.3.1 r4 and have had some issues.. I've worked through some, but, a couple I cannot get by without some help.
- SMF wouldn't accept the zip file of the mod via the upload built in.. I had to ftp it up, and then unzip it in the /Packages directory. This allowed it to install from inside SMF. I also needed to copy the TS3_Class/ dir by hand to /Sources
Errr ... never seen that one before so Can't really help.
Quote:
- Not sure what API to use for our Alliance in the main config of TEA.
Put in a corp key for your exec corp ... you need to be able to get the standings.
Quote: - Base Admin account loses admin privs.. because it has no API. Probably by cron check. a reset php script fixes this temporarily.
untick the main and additional boxes next to administrator on the rules page.
Quote: - Users cannot register because of the "select a character" requirement, even with "Is a Valid Api required to Register? " set to disabled/no. if you enter a single character or false API, it will tell you in the error message, a proper one will tell you to select a character.
That checkbox removes the requirement for a API key to register. ie you can completely leave out the api key ... if you enter one it has to be valid
Quote:The API function -IS- working, just the fetch characters button is doing nothing. For the admin account, I tested adding an API without selecting a character, and saving it, then opening it again and was able to select a character without a problem. ... Also changed the API server to: http://community.eveonline.com/support/api-key/ since the other links were https, and, double redirected to this URL. an https link may also be fine, but, I was reading about prople having trouble with curl and ssl. Testing curl by hand revealed the redirects to me, actually. The fetch button didn't work with any of the urls used, but the test on the admin account worked fine with this one. Thanks for any help you can give.
The url in the API server Box must be https://api.eveonline.com anything else and it will not work correctly. Well actually that isn't quite true ... if you have set up some kind of Eve API cache server then you'd put that in here instead but the likely hood of that is fairly slim :)
If you are installing on Linux then there is no problem with curl and https the problem only exists on windows since PHP doesn't ship with the Root CA's and it can't access the ones in Internet Explorer ... to work around this find :
curl_setopt($ch, CURLOPT_TIMEOUT, 60);
and add after it :
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|

Shin Chogan
Blueprint Haus Get Off My Lawn
24
|
Posted - 2013.12.15 20:02:00 -
[37] - Quote
Dasani Waters wrote:Just an FYI:
I think CCP recently changed the "403 - Forbidden" messages to more specific error messages; I got php errors when trying to validate empty or invalid keyIDs and vcodes. I managed to fix some of them by changing the "403 - Forbidden" arguments to their specific counterparts in TEAC.php
Yeah ... I've rewritten it to take into account the complete 180 that CCP did on error codes. I've been working out the kinks on my victims ... sorry volunteers ... nope still not right ... subjects ... thats more like it 
I just need to get some time to put it into a release. |

Shin Chogan
Blueprint Haus Get Off My Lawn
24
|
Posted - 2013.12.16 11:11:00 -
[38] - Quote
Magenta Flori wrote:Any way to make it not accept people with an incorrect access mask? I have seen it take an API, only show one char, say incorrect mask in SMF/Tea but still gives them access.
I added access mask checking in the last (or possibly the one before that) release. find function checkmask($xml) in TEA.php and modify to suit your needs ... if you don't care if they've put in a key that will break some of the rule checking then the quick way is to change the line :
return False;
to
return True;
if you don't want them to have to put in an account key then find the if statement in TEA.php :
if ($accnt->result[0]->key[0]['type']!="Account")
and comment out the whole block. There are 3 of them
|

Shin Chogan
Blueprint Haus Get Off My Lawn
24
|
Posted - 2013.12.16 21:44:00 -
[39] - Quote
Ya Huei wrote:Hi there,
First off, awesome package I've managed to hook up SMF auth and openfire without too much trouble yesterday. I have one question though:
In my rules for forum groups I have added one main rule defining that if you are in corp u go to a certain group.
However this doesnt seem to work
Rules on additional groups DO work however.
This is the only rule i have set up in main groups :
ID 3 RULE IS => Corp: 883901493 (Imperial Collective) groupname AND (enable flag checked)
In my case, additional rules throw me in the director group no problem, but main stays 'not monitored'
Hope someone can assist.
Check that the primary group is checked for both the group that you want to put them in (groupname) AND the group that they are already in, probably no membergroup but it could be something else. |

Shin Chogan
Blueprint Haus Get Off My Lawn
24
|
Posted - 2013.12.19 21:22:00 -
[40] - Quote
Sirius Loc wrote:Hi,
i have installed today the TEA v1.3.1 r4 now when i try to register an new user with the api i have some problems....
when i fill in the api and i use "Get Characters" nothing happen?!
any idea?!
Sorry I'm going to need little more. What OS are you running on ? Any kind of errors being displayed ? Have you entered a master api key ? |
|

Shin Chogan
Blueprint Haus Get Off My Lawn
24
|
Posted - 2013.12.20 20:43:00 -
[41] - Quote
Sirius Loc wrote:Shin Chogan wrote:Sirius Loc wrote:Hi,
i have installed today the TEA v1.3.1 r4 now when i try to register an new user with the api i have some problems....
when i fill in the api and i use "Get Characters" nothing happen?!
any idea?! Sorry I'm going to need little more. What OS are you running on ? Any kind of errors being displayed ? Have you entered a master api key ? Hi, i work on smf 2.0.6 and i have no errors nothing.... and yes i have as well tryed a master api key but nothing happens when i get on "get characters" when i try to register without get character i get the message "A Valid API is Required to Register on this Forum" but i have tried a master api key as well ?!!?!
So you do get an error message :) - A Valid API is Required to Register on this Forum.
This means that your system is not fetching a character list from your api ... either it isn't allowed to coz your api key is wrong/expired or your system is not able to fetch anything ... you didn't say what OS you are using ... if it is Windows then you will need to turn off SSL Peer checking ... there is a post somewhere in this thread that says how. |

Shin Chogan
Blueprint Haus Get Off My Lawn
24
|
Posted - 2013.12.22 16:23:00 -
[42] - Quote
Sirius Loc wrote:Shin Chogan wrote:Sirius Loc wrote:Shin Chogan wrote:Sirius Loc wrote:Hi,
i have installed today the TEA v1.3.1 r4 now when i try to register an new user with the api i have some problems....
when i fill in the api and i use "Get Characters" nothing happen?!
any idea?! Sorry I'm going to need little more. What OS are you running on ? Any kind of errors being displayed ? Have you entered a master api key ? Hi, i work on smf 2.0.6 and i have no errors nothing.... and yes i have as well tryed a master api key but nothing happens when i get on "get characters" when i try to register without get character i get the message "A Valid API is Required to Register on this Forum" but i have tried a master api key as well ?!!?! So you do get an error message :) - A Valid API is Required to Register on this Forum. This means that your system is not fetching a character list from your api ... either it isn't allowed to coz your api key is wrong/expired or your system is not able to fetch anything ... you didn't say what OS you are using ... if it is Windows then you will need to turn off SSL Peer checking ... there is a post somewhere in this thread that says how. Windows and apachi.... and i geht this message now API System Screwed - Can't Fetch Standings : bool(false) There is a problem fetching Standings : int(9999)
When do you see this ?
have you made the changes not do ssl peer checking ? this is essential on windows Do you have a master api key added ? |

Shin Chogan
Blueprint Haus Get Off My Lawn
24
|
Posted - 2013.12.23 11:01:00 -
[43] - Quote
And a slightly early Xmas Present for you all r5 released.
- Now should work properly again with CCP's error codes.
- SSL Peer Checking disabled
- Debug option added to TEA_Cron.php (just do php TEA_Cron.php debug on the command line - don't do this via cron ;)) to show which users it has operated on and which groups (just the group id) they have been added to via the TEA rules.
|

Shin Chogan
Blueprint Haus Get Off My Lawn
49
|
Posted - 2013.12.31 19:34:00 -
[44] - Quote
Sarion Achasse wrote:Would it be possible to allow users in a specific SMF usergroup to register TS and Jabber accounts?
Ideally I would like to give a specific group access to TS and Jabber, without the need for an API key. People that stopped playing Eve or friends from other games for example, that still would like to hang out on the same TS and Jabber servers.
In short not as it stands ... though at least for jabber you can just create accounts and add them to groups directly on the server 
|

Shin Chogan
Blueprint Haus Get Off My Lawn
49
|
Posted - 2014.01.04 20:21:00 -
[45] - Quote
Magenta Flori wrote:They have an incorrect mask but it still matches them to a group because they have "enough" access via the API even though it is not the "correct" mask. Is there a way to force it to be the exact access mask or have their account removed with the dbcleanup? It is supposed to do this now?
Is there an easy way to just remove everyone with invalid apis?
dbcleanup just removes orphaned characters and api keys.
In TEA.php find the block that starts :
if (!$this->checkmask($accnt))
and after $error = TRUE; add :
Continue;
this should then skip doing the rule checks against api keys that don't match the mask.
|

Shin Chogan
Blueprint Haus Get Off My Lawn
49
|
Posted - 2014.01.06 01:25:00 -
[46] - Quote
Naella wrote:Hiya,
Running SMF 2.0.6 Teamod 1.3.1 r5
I'm having two issues.
- It happens if I set a a rule "ISNT Corp" for our corporation at first rule positon, any members that have alts on the same account but in different corp (either NPC or not) will get matched to that rule and assigned the corresponding group. In our case that will be guest access, but being corp member with at least 1 toon they should be granted member access.
are you using main group rules or secondary group rules ? in the case of main group rules, the processing of the rules stop on first match ... in this case you need to position the ISN'T Corp rule AFTER the IS Corp rule.
Quote: - On the API mask check. I found 2 members using an invalid mask, but with the minimal required fields. I can see the red error message stating BOTH api id's when I check any of our members API after a full check.
[ERROR] Check your Access Mask - keyid = masked ;)
Yeah ... it is a "feature" of SMF and how the session error is used ... it is something that was inherited from the original author and I've not looked into correcting it since it doesn't really cause any functional problems |

Shin Chogan
Blueprint Haus Get Off My Lawn
49
|
Posted - 2014.01.12 08:13:00 -
[47] - Quote
Liez Onerbak wrote:I have an issue. When a user registers for jabber via temars, it reads as though it was successful on the forum-side, and it populates the prefix_tea_jabber_users table, however, it doesn't actually create a user on the Openfire server.
When I use the user service link manually to try and create a user, it works perfectly, but via temars it's not actually creating the user, even though it 'thinks' it is....
any thoughts as to what could be causing this?
Also Temars is talking to the Openfire server just fine as the groups are available to map via rules....so I can't figure out what's going on...
The "talking" for the groups is done via direct db calls but the adding of users is done via the user service which is why one bit can work but the other not.
Do you have any smf group to Openfire group mappings set up that some users belong to ? ... until you do the users will not be created in Openfire.
Also do you have ip security set up in Openfire on the user service. If you do it needs to be 127.0.0.1 I believe rather than the real IP address of the machine (unless of course SMF and Openfire are on different machines )
|

Shin Chogan
Blueprint Haus Get Off My Lawn
49
|
Posted - 2014.01.12 20:16:00 -
[48] - Quote
Liez Onerbak wrote:Shin, thanks for the quick response. I do have group mappings set and there are users in them on the SMF side. I do have two members that I manually created on jabber as well via the user service link (directly into browser), and that worked fine.
The IP security is empty. I've tried it with the IP of the box that SMF is on (different than jabber) and tried it without an IP. Even with members in mapped groups on both ends, trying to authorize a new user on jabber gives me a "successful" message on the SMF side, but no member created within OpenFire....
So I'm going to assume the URL to Admin Page for Openfire eg. http://localhost:9090 and secret are set correctly in the SMF admin page for TEA Jabber 
Can you run a packet trace on the openfire server ? ... Check that the request is actually getting to it since it looks like everything else sounds good, the only explanation I can come up with is that the Jabber server isn't actually being hit.
Assuming you are on linux you are going to need to do something like (you will need to change the port to whatever you have your openfire server on) :
sudo tcpdump -A -s 0 port 9090
|

Shin Chogan
Blueprint Haus Get Off My Lawn
49
|
Posted - 2014.01.20 21:17:00 -
[49] - Quote
Naella wrote:Hi Shin,
Running SMF 2.0.6 Teamod 1.3.1 r5
I found eventhough I have "Is a Valid Api required to Register?" checked, users can register to our forum without any API filled. Anyway I can fix this?
I hate to say "it works for me" but .... It works correctly for me ...
So I have to ask :
is there any info in the logs (either SMF's or Apache's) ? And the obligatory ... Are you 100% sure the option is set ? Have you tried unchecking the box saving then checking the box again and resaving ? |

Shin Chogan
Blueprint Haus Get Off My Lawn
49
|
Posted - 2014.01.20 21:18:00 -
[50] - Quote
Magenta Flori wrote:Are skill rules still broke?
I believe they are fixed - again the "it works for me" answer  |
|

Shin Chogan
Blueprint Haus Get Off My Lawn
49
|
Posted - 2014.01.21 10:50:00 -
[51] - Quote
Slez wrote:
I've tried to telnet to api.eveonline.com 443 and get no response -- i've disabled the windows firewall and still no joy; so I'm stumped.
It would seem to me you need to get basic connectivity to CCP's API server first. As to how to do that if it isn't the Windows Firewall ... I'm afraid I can't help. |

Shin Chogan
Blueprint Haus Get Off My Lawn
50
|
Posted - 2014.01.22 22:36:00 -
[52] - Quote
Slez wrote: Follow up: telnet api.eveonline.com 443 is successful (get a blinky cursor until anything is pressed then I get a connection lost message).
Error displayed at the top of the settings page where you enter the API key: API call error while fetching standings: Error Code = 221 for key id = 1976416 API call error while fetching standings: Error Code =
as it says it can't get the standings ... the reason looks to be coz the master API key you've entered doesn't allow standings to be fetched. You need to use a corp key. |

Shin Chogan
Blueprint Haus Get Off My Lawn
50
|
Posted - 2014.01.22 22:56:00 -
[53] - Quote
Magenta Flori wrote:I am running r4 but change notes didn't say anything about rules with r5, should I try r5? Any gotcha I need to know before upgrading? What is the best way for upgrading, uninstalling and just installing the new?
ok so I upgraded...
getting a lot of these when I run a full member check
API call error while fetching roles: Error Code = 221 for key id = API call error while fetching roles: Error Code = 221 for key id =
Update:
All those errors were occurring on some, not all, accounts that invalid API's. Also the table would show the character name but no details on those accounts when running the member check. I simply removed all those API's and now the error does not occur anymore and they are given No API when the check is ran. So I guess its working, not sure what happened there.
Also skill rules are working now.
Error 221 is CCP's error code for "The api key provided doesn't allow you to fetch that info". For example if you have a rule that looks at skills (which I guess you do ) then any api key that doesn't have Character sheet enabled is going to show a 221 error.
And yes as you found r5 does indeed fix skill rules ... I must have forgotten to put it in the notes. |

Shin Chogan
Blueprint Haus Get Off My Lawn
50
|
Posted - 2014.01.23 16:44:00 -
[54] - Quote
When you say they don't need a valid api even though the option is ticked do you mean they are entering an api key that doesn't have the right options ticked or that they are not entering an api key at all ? |

Shin Chogan
Blueprint Haus Get Off My Lawn
50
|
Posted - 2014.01.24 12:51:00 -
[55] - Quote
Nutbolt wrote:Shin Chogan wrote:When you say they don't need a valid api even though the option is ticked do you mean they are entering an api key that doesn't have the right options ticked or that they are not entering an api key at all ? Not entering one at all. Just go to our forums to test (www.avalonproject.co.uk/forums).
Hmmm ... very strange ... can you confirm that there is a tea_regreq entry in you smf_settings table ?
and can you check line 3292 in TEA.php it should read :
if ( !empty($_POST['tea_user_id']) || !empty($_POST['tea_user_api']) || $this -> modSettings['tea_regreq'] ) |

Shin Chogan
Blueprint Haus Get Off My Lawn
50
|
Posted - 2014.01.24 16:22:00 -
[56] - Quote
Doh ... found the problem ... I thought I'd tested with no api key but it looks like I just tested with duff ones.
Change line 3295 to read :
if ((empty($chars)) || (gettype($chars) == 'integer'))
and that "should" fix it. |

Shin Chogan
Blueprint Haus Get Off My Lawn
52
|
Posted - 2014.02.07 20:01:00 -
[57] - Quote
Magenta Flori wrote:Magenta Flori wrote:Ok got a new one I'm stuck on. Got an ex member, left 8 days ago. Confirmed his API key really shows him as gone yet SMF still shows him as in corp. He has no alts in corp/alliance or any alt that matches any rules with the API key that is provided on his account. I even run full member check manually and it still shows him as in corp/alliance. I try to run php TEA_Cron.php debug but it does not give me anything at all to work with. Not sure how to troubleshoot. Ok got the debug output sorted. I'm assuming the first number is the user of smf. Main is the main rule and the additional are the other rules. My rule 16 is an alliance rule and the other rule 10 is a corp rule. So it clearly thinks this user is still in alliance/corp? I'm baffled. [246]=> array(2) { ["main"]=> string(2) "16" ["additional"]=> array(1) { [0]=> string(2) "10" } } I even removed his API and re-added it. The same API that I can check with evemon and it shows him as in the NPC corp. After I re-added it, it still put him right back into alliance in SMF. If I create a rule for the npc corp he is in, it sees it and applies the npc corp rule. When I remove that rule, it puts him right back in Alliance. I do have a neut rule before the alliance rule in case it was looking at history for some reason. Did not matter, still says in Alliance. https://api.eveonline.com/account/Characters.xml.aspx also shows both characters with this API as in NPC corps. Spent about 4-5 hours trying to sort this out. I'm stumped. UPDATE: I discovered that the smf_tea_cache table was not updating, even when removing and re-adding this users API. So I backed up my DB and truncated that table. Welp, that fixed it. Next time I put the key in and ran full member check it pulled new data from api.eveonline.com. So I guess the question is did I have DB corruption? Why was it pulling from this cache and not updating it? Should I do a cron job to wipe this table out daily? I also have noticed that the full member check was running super fast. Now it is back to running slow with about 10 per page or so. Instead of 100 per page.
Hmmm .... I was going to point you to that table after reading your first post :) As for why it wasn't clearing out expired entries I don't know ... again it appears to work for me and I've not heard anyone else report this one ... keep an eye on that table and see what happens.
|

Shin Chogan
Blueprint Haus Get Off My Lawn
52
|
Posted - 2014.02.07 22:01:00 -
[58] - Quote
Magenta Flori wrote:K, how often when I run full member check should it be slow and actually check every API instead of using the cache? Been another hour or so and its still super fast and runs through a few hundred in a couple seconds.
it depends on if you are running the cron job in the mean time :)
Cache entries are checked and if the timestamp on them is over an hour ago then the api fetch is made ... if it is less than 1 hour then the cache is used and then the new result is stored and the timestamp is updated. |

Shin Chogan
Blueprint Haus Get Off My Lawn
52
|
Posted - 2014.02.08 11:45:00 -
[59] - Quote
dephekt wrote:What's the in-game character associated with the lead developer on this project now? According to the GitHub commits, "barneycg" seems to have the most development activity. I'd like to send an ISK donation to you in-game. Is that you, Shin Chogan? I love this middleware app and want to support future development and maintenance updates. Thanks for your contributions to this project. For any other alliance IT guys, I highly suggest sending ISK to this man to encourage continued development on this. It brings massive value and one good turn deserves another.
Yeah barneycg is me. Thanks for your support is it much appreciated. |

Shin Chogan
Blueprint Haus Get Off My Lawn
53
|
Posted - 2014.02.16 18:47:00 -
[60] - Quote
lasterax wrote:With TS and Jabber on a separate server I'm starting to get somewhere but running into problems.
The TS script is giving me Undefined index errors for tea_charid, tea_userid and tea_api at lines 86, 87 and 88 in TEA_TS.php-- do I have something misconfigured somewhere?
Jabber integration is seeing the server, can't seem to create any users at this point, working on it still.
--Rax
Oh farnsworth !!!! ... fsking TS code ... never touched it ... don't use TS ... comes back and bites me in the fsking arse.
Looks like Temar never actually updated the TS code in line with the rest of the code for the CAK keys. it is using old db values that don't exist anymore !!!
You should be able to safely ignore those errors ... that chunk of code doesn't actually do anything useful anyway it looks like it was copy pasted from another chunk of code and even though these bits aren't used in this function Temar left them in.
*sigh*
|
|

Shin Chogan
Blueprint Haus Get Off My Lawn
53
|
Posted - 2014.02.21 08:00:00 -
[61] - Quote
Samu Tresfoure wrote:We are having trouble getting the Director rule to work properly. The additional group rule is set as follows:
(ID) 19 IS => Alliance: 99003478 (The Harlequin's) IS => Role: Director (Group) Director AND
It would seem that even though both conditions are in the same rule, it is still looking at all characters on the API instead of just one, causing characters with Director roles in other corps/alliances to be counted.
Anything we're missing?
I've not noticed this on our boards but ...
Is this a Main rule or a Secondary rule ? |

Shin Chogan
Blueprint Haus Get Off My Lawn
53
|
Posted - 2014.02.22 17:29:00 -
[62] - Quote
Dmitry Wizard wrote:im having trouble with the rules section. people not in my alliance are able to sign up and see everything. people in my allliance are able to sign up and see onlly what i want them to see. i tried to set up a rule where neut/red/ no standing get put into a "spy" group where they cant see or do anything but it doesnt seem to be putting them into the group. any tips?
To be honest anyone who isn't in your alliance shouldn't be in any group ... then you just make sure your boards are set up right so that only the people in your alliance groups can view any boards.
also try looking a page or so back and see the fix for enabling require valid api to register ... that might help too. |

Shin Chogan
Blueprint Haus Get Off My Lawn
53
|
Posted - 2014.02.23 10:14:00 -
[63] - Quote
Tomy LEE wrote:Tomy LEE wrote:Please, what is your command line to set TEA CRON on cpanel ? My settings in cpanel : php /home/..../Packages/TEA_1_3_1/TEA/TEA_Cron.php 644 for the file access right 755 for the folder Error 500... I have a very simple .htaccess file with "allow from all, satisfy any". Have tried different access rights for the file tea cron, a test named for htaccess file... Don't have the solution at this time. Thx for your help.
I'm afraid I know nothing about cpanel so don't know how to set that up ... I run this on a dedicated server with full shell access  |

Shin Chogan
Blueprint Haus Get Off My Lawn
54
|
Posted - 2014.03.09 13:13:00 -
[64] - Quote
Norian Lonark wrote:Hi all,
A very strange error has just started happening on my forums, the mod has been running successfully for months without any issues then since yesterday whenever I try to update someones tea profile setting i get a page not found error when I click the change profile button.
Also when trying to look at the settings page of the Tea mod I get the following error:
MySQL server has gone away File: /Sources/TEA.php Line: 1413
I have run a database tables check and repair through cpanel, checked the error logs of the forum (nothing found), uninstalled deleted the files and reinstalled the mod and contacted my host to ask them if anything has changed.
Now I am at a bit of a loss, as this has just started happening recently I just wondered if anyone had any ideas what I could do.
Thanks a lot for any tips help..... its a great mod.
Regards,
Nori.
Hmmm very strange indeed ... that error could be caused by a timeout or maybe a limit on the number of open connections you can have to the DB being reached. It could also be that something else is closing the connection to the DB for some reason before you are able to make the call to the TEA cache table ... which is what is happening on the line you mention. |

Shin Chogan
Blueprint Haus Get Off My Lawn
54
|
Posted - 2014.03.10 10:55:00 -
[65] - Quote
Norian Lonark wrote:Shin Chogan wrote:Norian Lonark wrote:Hi all,
A very strange error has just started happening on my forums, the mod has been running successfully for months without any issues then since yesterday whenever I try to update someones tea profile setting i get a page not found error when I click the change profile button.
Also when trying to look at the settings page of the Tea mod I get the following error:
MySQL server has gone away File: /Sources/TEA.php Line: 1413
I have run a database tables check and repair through cpanel, checked the error logs of the forum (nothing found), uninstalled deleted the files and reinstalled the mod and contacted my host to ask them if anything has changed.
Now I am at a bit of a loss, as this has just started happening recently I just wondered if anyone had any ideas what I could do.
Thanks a lot for any tips help..... its a great mod.
Regards,
Nori. Hmmm very strange indeed ... that error could be caused by a timeout or maybe a limit on the number of open connections you can have to the DB being reached. It could also be that something else is closing the connection to the DB for some reason before you are able to make the call to the TEA cache table ... which is what is happening on the line you mention. I tried clearing out the smf_tea_cache table also contacted my host to restore the database and website, tried everthing I can think of. Contacted my hosting company again they said that something with the query is taking ages to execute at index.php?action=admin;area=tea;sa=settings; but just dont know what else I can try  The only pages where I get the error are the settings page and running the actual checks :/ all the other pages load up fine. Could there be something in one of tables which the settings page calls up which is corrupt?  or any weird permissions problem with the files.. I think all the files that should be 0644 are. When I try to run the checks I get the following messages: API System Screwed : bool(false) and MySQL server has gone away File: /Sources/TEA.php Line: 2408
not sure about the line 2408 bit ... the code I'm looking at on that line isn't doing anything with the DB ... any chance you can paste what you have on that line incase it is a different version.
API System Screwed is because it is failing to do an api call and in that particular case it is just trying to verify that CCP's API servers are up so it just pulls a list of the available calls. https://api.eveonline.com/api/calllist.xml.aspx
|

Shin Chogan
Blueprint Haus Get Off My Lawn
54
|
Posted - 2014.03.14 19:55:00 -
[66] - Quote
Szczurek wrote:Hi Shin, First, thanks a million for picking up this project :) Big kudos :) Secondly, what's the best way to upgrade from 1.3.0 r179? The 1.3.1 r5 package info do not carry the upgrade path. Is the one from 1.3.0 applicable or does it need to be customized? The one which was included in r179 looks like this (had to sanitize xml tags into || and |- respectively) Quote:||upgrade from="1.3.0 r155"|- ||readme type="file"|-readme.txt||/readme|- ||require-file name="TEA.php" destination="$sourcedir" |-||/require|- ||require-file name="TEAC.php" destination="$sourcedir" |-||/require|- ||require-file name="TEA_TS.php" destination="$sourcedir" |-||/require|- ||require-file name="TEA_Jabber.php" destination="$sourcedir" |-||/require|- ||require-file name="TEA_Jabber_OF.php" destination="$sourcedir" |-||/require|- ||require-file name="TEA_SkillDump.php" destination="$sourcedir" |-||/require|- ||require-file name="TEA_Roles.php" destination="$sourcedir" |-||/require|- ||require-file name="TEA.english.php" destination="$languagedir" |-||/require|- ||require-dir name="TEA" destination="$boarddir" |-||/require|- ||require-dir name="TS3_Class" destination="$sourcedir" |-||/require|- ||code|-tables.php||/code|- ||/upgrade|-
Yeah ... I just uninstall and then reinstall. The database is not touched so you shouldn't loose anything.
|

Shin Chogan
Blueprint Haus Get Off My Lawn
55
|
Posted - 2014.03.15 09:07:00 -
[67] - Quote
Liez Onerbak wrote:I'm experiencing some issues as of today. If a user tries to register, or an existing user tries to update/add API to profile, or the cron runs (whichever happens first), the characters are coming back without corp tags and therefore not qualifying for any groups. Users are being removed from their groups as well....
For instance, The users are listed in the back end like: [] Your_Name (closed brackets where the corp tag would be)
Any ideas?
* Edit: Been working fine for months and nothing has changed/been updated recently. The only thing that's changed is the new eve patch but I can't imagine that would have anything to do with it...
* Edit #2: Confirmed the same problem happening on another site. Exact same issue.
That sounds like the corp sheet XML is either corrupted or not being fetched. It might be worth looking in your tea api cache table for the last fetch of the corp in questions corpsheet and verifying it and probably removing it before refreshing the api of the accounts. |

Shin Chogan
Blueprint Haus Get Off My Lawn
55
|
Posted - 2014.03.15 12:27:00 -
[68] - Quote
Well if it only started happening Today then it can't be the patch as that was before that :)
What version are you guys running ?
The XML from CCP's servers looks just the same as it did before and while I hate to say it ... it works fine for me :) - I've just tried registering a new user and that is fine too.
Can you guys clear out your tea api cache table and also run the db_clean_up script to remove any orphaned api's/toons then retry things.
Dark Angel66 ... where is that screenshot taken ... I can't see enough of the page ... I think it is just the profile page of a user ... in which case just how is there 4 toons listed for a single api ? This is why I'm suggesting the db_clean_up script. |

Shin Chogan
Blueprint Haus Get Off My Lawn
55
|
Posted - 2014.03.15 15:08:00 -
[69] - Quote
Ah Ha ... nice find Demitrios. I looked too late in the process sequence ... I was rushing to take a look before heading to the Opticians and didn't track back far enough.
I suppose you could add in some code to truncate after the first space and use that for corpID but as you say we shouldn't have to coz it is just broken xml.
Oreamnos Amric - the new versions do exactly what you say ... they put the returned XML in a SimpleXML object and use that for the parsing ... much nicer than the older way of doing it but it means that if the XML is invalid there are problems which is exactly what we are seeing here. |

Shin Chogan
Blueprint Haus Get Off My Lawn
56
|
Posted - 2014.03.15 15:41:00 -
[70] - Quote
Hmmmmm .... "interesting"
row characterID="xxxxx" characterName="xxxxxxx" corporationID="1000168" corporationName="Federal Navy Academy"
pulled from my tea cache from a cron fetch done at :
currentTime 2014-03-15 15:17:16 /currentTime
looks like they've gone the other way on Tranquility's api server. |
|

Shin Chogan
Blueprint Haus Get Off My Lawn
56
|
Posted - 2014.03.16 00:31:00 -
[71] - Quote
Cyerus wrote:Demitrios wrote:I wouldn't touch a thing, TEA worked fine for the past 4 years with no issues, ignoring the big change to CAK, no reason to change it now when they are going to fix it. By "they" you mean the actual TEA developer I hope? If not, you are an idiot and please stfu, and here is why.
lol ... they put out invalid XML and I should "fix" it to be honest I'm not sure why the invalid XML isn't being handled in these guy's versions, still not sure what they are all running r5 should handle it but r4 wouldn't work well My version handled it just fine but I does have some not released code. |

Shin Chogan
Blueprint Haus Get Off My Lawn
56
|
Posted - 2014.03.19 20:26:00 -
[72] - Quote
Demitrios wrote:Just playing with the new version, and for some reason, the mod is allowing people to register without putting any api details in, yet the mod is set to require api details for registration.
It doesn't throw up any errors, you just skip the api details and hit register, and an account is made.
Any ideas, Shin?
Thanks,
Demi
Yeah ... I'd missed a test case and screwed up ... https://forums.eveonline.com/default.aspx?g=posts&m=4148939#post4148939 should fix that issue. |

Shin Chogan
Blueprint Haus Get Off My Lawn
56
|
Posted - 2014.03.19 20:36:00 -
[73] - Quote
Tahnil wrote:How did you manage this? Because I seem to have the same problem.
This type of error sounds very much like you've installed other Mods after TEA ...if you look in your apache/what ever webserver you use logs you will probably see a php fatal error ... this should tell you roughly where the problem is. |

Shin Chogan
Blueprint Haus Get Off My Lawn
57
|
Posted - 2014.03.21 19:18:00 -
[74] - Quote
Zenith Gravit wrote:Currently when people try to register on our forums the "TEA Required Options" fields show twice on the registration page and when someone clicks Get Characters they get the error "API call error while fetching toons: Error Code = 106 for key id = undefined "
Any suggestions?
Sounds like you've done an uninstall at some point and then an install of a new version but the uninstall didn't complete correctly. This usually happens when you install other mods after TEA and the uninstall script can't find the bits it needs to remove from an existing file ... you are going to need to clean up your install I'm afraid. |

Shin Chogan
Blueprint Haus Get Off My Lawn
57
|
Posted - 2014.03.22 13:31:00 -
[75] - Quote
Zenith Gravit wrote:I got my dirty install mostly cleaned up, but the user's profile page still has some extra fields and I'm just not sure what needs to be removed to clean it up. The Status, Main Matched Rules, Characters, ID from API page, and Verification Code from API Page fields are all duplicated once. I'm just trying to figure out how to clean that up. Screen shot ----> http://i.imgur.com/0nHoabh.png
Its supposed to be like that. There is always an unfilled section so you can add a 2nd or 3rd or xth api key. |

Shin Chogan
Blueprint Haus Get Off My Lawn
57
|
Posted - 2014.03.22 14:36:00 -
[76] - Quote
Not really ... certainly not for that bit.
somewhere about line 118 in TEA_Jabber_OF.php there is the block :
$url = $this -> modSettings['tea_jabber_admin_url'].'/plugins/userService/userservice?type=add&secret='.$secret.'&username='.$uname.'&password='.$pw.'&name='.$name.'&email='.$email.'&groups='.$groups; $url = str_replace(" ", "%20", $url); $site = $this -> get_site($url);
adding in a
var_dump($url); var_dump($site);
after that and before the "return;" (yes I know there is 2 of them and a block of code that never gets used ... Not me :) )
it might help you find out what is happening. |

Shin Chogan
Blueprint Haus Get Off My Lawn
57
|
Posted - 2014.03.22 19:58:00 -
[77] - Quote
Jen Moriarty wrote:So I have found the problem with the script.
Apparently, TEA decides to call the update_user function even when the Openfire user does not exist, resulting in UserNotFoundException, and the Openfire user not being created.
I think this is how the process played out: I tried to register a new user The user was written into the tea_jabber_users table, but for some reason was not written into Openfire. From now on, every subsequent call to this user will call the update_user function (and get a silent exception). This is clearly a bug.
Is there a way to read back the result of accessing the Openfire URL? In case of such exception, an add_user call should be made
Yes that is a known issue but is only a problem if something is wrong in the setup and the user doesn't get created in the first place or you allow your users to delete their accounts another way. As you say this is caused by the user not being created in the first place - you need to remove the entry from the jabber users table and then try and create the user again ... perhaps run a packet trace on the Openfire user service port and see what is going on. |

Shin Chogan
Blueprint Haus Get Off My Lawn
57
|
Posted - 2014.03.22 20:02:00 -
[78] - Quote
Zenith Gravit wrote:Shin Chogan wrote:Zenith Gravit wrote:I got my dirty install mostly cleaned up, but the user's profile page still has some extra fields and I'm just not sure what needs to be removed to clean it up. The Status, Main Matched Rules, Characters, ID from API page, and Verification Code from API Page fields are all duplicated once. I'm just trying to figure out how to clean that up. Screen shot ----> http://i.imgur.com/0nHoabh.png Its supposed to be like that. There is always an unfilled section so you can add a 2nd or 3rd or xth api key. Thank you for the clarification. I guess I didn't remember that being there. Also, I thought everything was working but I'm getting a PHP Parse error on the last line of ScheduledTasks.php, it's causing my mail queue to hang. I ran into this a week or so ago, it it was because there were duplicates of the TEA cron functions. I just deleted the dupes before and all seemed to be well after that. I tried to just remove the TEA cron functions this time to test if the error went away, but I still get it. During the install is another change made elsewhere in the ScheduledTasks.php. My Apache logs aren't giving much info. Quote:end of file in /var/www/smf/Sources/ScheduledTasks.php on line 1688, referer: http://myurl/index.php?action=admin;area=mailqueue;sa=browse;f0978340=2360096e95c503d28e74735f6282e85c
Nope just adds the stuff to the bottom of the ScheduledTasks.php though it does also add bits to the ManageScheduledTasks.english.php file |

Shin Chogan
Blueprint Haus Get Off My Lawn
57
|
Posted - 2014.03.22 20:05:00 -
[79] - Quote
Xornicon Altair wrote:Xornicon Altair wrote:I've just removed r2 from my server and I'm trying to install r5. Everything is okay until it gets to the actual install page and most of the files have an error next to them in big bold red letters that says "Modification parse error". I've tried proceeding anyways and it fails to install, but there are no other errors on the board.
I've downloaded the most recent package available from the first post in this thread.
SMF Version 2.0.6 Uploaded an image of what I'm talking about. This is what comes up when I'm trying to install the mod: http://i.imgur.com/kQP5Vig.png
I've not seen that one before but a quick Google turned up this :
Quote: It is essentially a matter of your host, for whatever reason the files couldn't be accessed by the package manager once unpacked. Usually that means there's some kind of permission issue with the files.
|

Shin Chogan
Blueprint Haus Get Off My Lawn
57
|
Posted - 2014.03.23 09:57:00 -
[80] - Quote
lasterax wrote:lasterax wrote:Migrated my forum to get on the same server as comms. Thins have gone well except for when running the API check, I get the following error: Quote:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 File: /var/www/forums/Sources/TEA.php Line: 2492 Checking the error log I also get the following: 8: Undefined property: TEA::$lastid Something I missed doing the move? --Rax Any ideas on this one Shin? I've tried removing the mod and reinstalling and it doesn't seem to fix the trouble. Everything else appears to be working right so I'm stuck at what's causing the error. --Rax
not yet .... I've not been able to trace a path that would not set TEA::$lastid |
|

Shin Chogan
Blueprint Haus Get Off My Lawn
57
|
Posted - 2014.03.23 14:07:00 -
[81] - Quote
Jen Moriarty wrote:This problem is still ongoing. When I hijack the get_site() function to load my own Openfire access string, I get literally nothing back - an empty string. Not an "ok" or rejected response like what I get when I load this URL on my own browser, just empty. Openfire itself shows nothing in its logs. Running packet trace is not possible cause I'm running this on a virtual server, so the physical hardware is shared.
what exactly are you doing when you say "hijack the get_site() function".
get_site returns whatever html the url it is fetching sends back. There is a 60 second time out so next question is does the get_site function take 60 seconds to come back ? In which case is it failing to connect to the openfire service. |

Shin Chogan
Blueprint Haus Get Off My Lawn
57
|
Posted - 2014.03.23 14:42:00 -
[82] - Quote
Jen Moriarty wrote:Shin Chogan wrote: what exactly are you doing when you say "hijack the get_site() function".
get_site returns whatever html the url it is fetching sends back. There is a 60 second time out so next question is does the get_site function take 60 seconds to come back ? In which case is it failing to connect to the openfire service.
Print debug lines to see what exactly is going on. Like printing the output of curl_exec. And no, it doesn't take 60 seconds, it is immediate. Next development. If, within get_site() I call a function to create an html page which redirects me to the Openfire URL, then I curl_exec THAT page, adding a user works. It has the unfortunate site-effect of a. leaving me on the redirected page, thus showing my passcode to the world and b. requiring that Openfire User Service IPs be open to the world. :(
It will also break all the other places that get_site is used 
so what is the url that get_site is trying to go to normally, without you making any modifications other than printing the url in get_site ? |

Shin Chogan
Blueprint Haus Get Off My Lawn
57
|
Posted - 2014.03.23 15:08:00 -
[83] - Quote
Jen Moriarty wrote:Shin Chogan wrote:It will also break all the other places that get_site is used  so what is the url that get_site is trying to go to normally, without you making any modifications other than printing the url in get_site ? Yup, I don't intend to leave it that way :) http://URL:9090/plugins/userService/userservice/plugins/userService/userservice?type=add&secret=SECRET&username=jen_moriarty&password=1111&name=*%20Jen%20Moriarty& [email protected]&groups=Admins The URL is right. If I copy it to my browser, it adds a user, but for some reason, it doesn't get sent to Openfire from TEA directly
Yes but remember your browser is making the request from your machine and the code is making it from a different one (the server itself). Assuming you are running both smf and openfire on the same server have you tried making the url http://localhost:9090 ? This is how mine is set.
The other thing I've not noticed if you've mentioned or not ... have you got the IP security turned on in the user service plugin ? again if this is turned on and you are running both smf and Openfire on the same server you need to add 127.0.0.1 |

Shin Chogan
Blueprint Haus Get Off My Lawn
57
|
Posted - 2014.03.23 15:39:00 -
[84] - Quote
lasterax wrote:Shin Chogan wrote:
not yet .... I've not been able to trace a path that would not set TEA::$lastid
edit : unless .... can you look in your settings table and find a value tea_nextpull. Also what happens if you run the TEA_cron.php script ?
There is a value for tea_nextpull: 1395427119. When I execute TEA_cron.php I get: API System Screwed : bool(false) Thanks, --Rax
OK so there is your real problem ... your server can't even contact the api server this is how you are getting to a point where lastid is not defined.
You need to get to the bottom of that issue first. |

Shin Chogan
Blueprint Haus Get Off My Lawn
57
|
Posted - 2014.03.24 00:59:00 -
[85] - Quote
Minibren wrote:I have an issue with the API system.
Info: Server running ubuntu 12.04 on a digital ocean server. The mod seems to have successfully installed. Entering a corp api has not updated the system (says last updated never) Changing the API profile of a user returns "[ERROR] API is returning invalid XML" When trying to register with api this error message is displayed "API System Screwed - Can't fetch Toons"
Trying to run a full member check produces this error: "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 File: /var/www/Sources/TEA.php Line: 2492"
Any ideas with what is causing this? Can't seem to find a solution.
Seems like you are not getting anything sensible from CCP's api servers. As to the reason why ... that is the 64 million dollar question. Without packet traces or adding debug lines it is very difficult to tell more. |

Shin Chogan
Blueprint Haus Get Off My Lawn
57
|
Posted - 2014.04.10 15:54:00 -
[86] - Quote
Bumse wrote:Hi there!
Small issue after switching jabber host. We were earlier on running jabber och the same server but we needed to change host for the jabber service. Now we're running it externally and reconfigured the jabber settings in TEA to accommodate this.
The problem we are having now is that no Jabber groups are visible on the Jabber setup page. Users are able to change their passwords and connect, new users are able to create their logins etc ... there's just no jabber groups visible so we can start rebuilding our rules. User Service calls seems to be working just fine from the web host. If i enter some commands via lynx on the forum host, commands are accepted on the new jabber host just fine, if formatted correctly ofc.
I do have a (old?) table in the forum database named "forum_tea_jabber_groups" with the groups that existed before the jabber server move, is that one used? Can it conflict somehow?
I'm not sure on where to start looking so any pointers, hints or shoutouts would be appreciated :)
The problem is with your TEA Jabber config ... SMF gets the Jabber groups by directly querying the jabber DB ... if you were running both on the same server previously you'll need to change the db host from localhost to your new fqdn or ip address ... you may also need to make config changes to the Jabber MySQL server config, db user accounts and any firewalls to allow connections from external hosts. |

Shin Chogan
Blueprint Haus Get Off My Lawn
57
|
Posted - 2014.04.14 08:25:00 -
[87] - Quote
Yveth wrote:Is there already a fix known for people that have to register with API? (for a new account) Or did i miss that post?
Thank you
I guess it depends on what is broken about it that you want a fix for  |

Shin Chogan
Blueprint Haus Get Off My Lawn
57
|
Posted - 2014.04.14 15:06:00 -
[88] - Quote
Yveth wrote:People should register with api before the account could be activated. Mandatory API key for registering.
Same like: - Account name - Password - Mail
Yeah the fix for that is somewhere in this thread :) |

Shin Chogan
Blueprint Haus Get Off My Lawn
58
|
Posted - 2014.05.07 11:43:00 -
[89] - Quote
Tahnil wrote:Hi. How should I proceed if I wanted to enable Jabber by default?
Currently every member of my SMF forum has to enable his openfire account manually in his profile. But I want to force usage of Jabber, and therefore I want activation by default.
Any ideas?
As is no can do ... the system needs you to provide a password to the User Service in order to create the account and since the hashing is one way it can't just provide the one you use in the forums.
It would need an extra field in the registration process and you'd have to not allow registrations without API Keys. |

Shin Chogan
Blueprint Haus Get Off My Lawn
58
|
Posted - 2014.05.19 20:47:00 -
[90] - Quote
Tahnil wrote:
Activation of Jabber accounts by default should still be possible, though. The correct way to do this would be to generate a password for the SMF user and display it in his profile.
That certainly sounds like one way to approach it. Though you then have to store the generated password in the SMF db in some kind of reversible hash (or plain text) ... sounds like you are moving the problem from one DB to the other 
Quote: That would mitigate obove mentioned security problem at the same time, as it prevents people from using a GÇPrealGÇ£ password (which might be used in other, more critical contexts as well).
Seriously ??? in this day and age what kind of numpty uses the same password for more than one account.  |
|

Shin Chogan
Blueprint Haus Get Off My Lawn
58
|
Posted - 2014.05.20 11:22:00 -
[91] - Quote
Tahnil wrote: No. My suggestion is to use a randomly generated password for the Jabber account. This password will be not secure at all, as it will be stored in the openfire database. As it is a random password, and as the SMF user wonGÇÿt be able to change it, it will never be identical with the REAL (SMF) password of the user. Thereby we are creating a second sphere of less (or NO) security, without compromising the real password of the user.
so the users still have to go to their profile to find out what their randomly generated password is ? so you've gained what exactly ? The user has saved possibly a few mouse clicks and typing 10 or so characters. The users still need to log into Jabber, if they didn't want to do that then automatically creating the account isn't going to increase your jabber uptake 
Quote: Of course there should be a hint text explaining, that this Jabber password is just a token and therefore not a password in a strict sense (we should avoid to produce the false assumption of a safe Jabber password, as itGÇÿs inherently unsafe).
I've not looked at the Openfire password encryption so can't comment but surely it is better than having a token that is fixed and can't be changed ?
Edit ... ok looked and yes decrypting the passwords is really really trivial 
You are also assuming someone has access to your Openfire DB other than yourself ... are you saying you can't be trusted ? ... Are you running the password decryption on your Openfire DB and trying it against accounts on other services ... you can go to jail for that 
I'd actually say a "better" way to fix this would be to use LDAP for openfire auth, write an SMF ldap authenticator (I've only found one that works with v 2 on some Russian site and I've not tested it or confirmed its security ), Scrap the Temar's plugin to SMF as it is now and make it modify the LDAP directory directly. |

Shin Chogan
Blueprint Haus Get Off My Lawn
58
|
Posted - 2014.05.20 11:30:00 -
[92] - Quote
Temar Radeik wrote:im back 
welcome back |

Shin Chogan
Blueprint Haus Get Off My Lawn
58
|
Posted - 2014.05.20 12:50:00 -
[93] - Quote
Tahnil wrote: Right now I have installed converse.js in my SMF. This is a Javascript XMPP Client. Everybody who logs into our forum AND has at some time in the past activated his Jabber account is automatically connected to the Jabber server and can send and receive Jabber messages while surfing on any page of our forum. The connection is established silently in the background, so no user interaction is needed at all.
All users who donGÇÿt want to install a separate Jabber client donGÇÿt need the Jabber password ever. All other users will have to copy and paste their Jabber password (or token) into their respective Jabber application (Pidgin, or whatever).
ah so you have a specific use case that you are trying to accommodate. 
Quote:
The thing is that the current implementation of TEA with Jabber is a (potential) breach of security. This is independent of whatever IGÇÿm saying or doing. Of course there may be better solutions than TEA with Jabber, but what speaks against making TEA better and more secure?
The breaches in security are Openfire and the users themselves. If you want to develop a solution that works for your use case and what you see as a security flaw then go ahead the code is there however at this time it isn't something I'm looking to add. There are better solutions which would fix other problems some of which may be considered even more of a security issue.
As a case in point you might want to look at how the user service plugin works ... you'll be running screaming from the treetops 
|

Shin Chogan
Blueprint Haus Get Off My Lawn
58
|
Posted - 2014.05.21 09:06:00 -
[94] - Quote
Quote: So I am running into a few things here that I vaguely remember reading about but not in exact context. I managed to connect to my server for about 20 minutes then it started kicking me out and refusing connection. As I looked at the logs, I saw the information linked below. Now this threw me as I was connected and online, so why would it work for 20 minutes and then not?
What do you mean "kicking me out and refusing connection" ? are you talking about your jabber client ? If so you are asking in the wrong place you need to talk to the openfire guys. |

Shin Chogan
Blueprint Haus Get Off My Lawn
58
|
Posted - 2014.05.21 09:22:00 -
[95] - Quote
Jen Moriarty wrote:Got a small question about the TEAC code:
So if the $type parameter is standings, this function does not use the cache. Why is that? Does this mean you do not need to cache calls to the /corp/ContactList.xml.aspx API? Call I call ContactList.xml.asp as often as I like?
Thanks!
No the get_xml function doesn't cache the result coz the code that calls it in TEA.php does the "caching"
The ContactList.xml.asp is the long cache style so it is like Market transactions ... once you fetch it you wont get anything at all from CCP until the cache timer has expired on their end.
when the get_xml is called in TEA.php to get the contact list it actually parses the xml and stores the data it in a file, at the beginning of the file is the timestamp of when it was created and it wont actually get the contact list again for for 24 hours.
Quote: if($time > (time() - (60 * 60 * 24)))
if you want it more frequent you can change that but since I've yet to get round to putting in proper cache timers based on the cache until value in the xml you'll need to make sure that you look at some raw XML to work out the minimum acceptable time. I did look at one point but I can't remember what the value was.
|

Shin Chogan
Blueprint Haus Get Off My Lawn
58
|
Posted - 2014.05.22 12:12:00 -
[96] - Quote
R6 released.
r6 change notes
- Misc Changes to error handling. Error 221 is treated as transient and will be rechecked (Note this error will be cached for 1hr).
- Added option to restrict access for a group ... people in this group will only have Corp rules processed - designed for Alliance boards to allow them to remove access to a corp before the corp has been dropped from the Alliance but allows the possibility of controlling access via corp name.
- Added option to prevent a specified group from having an account at all on Jabber even if other rules say they should.
- Clean up scheduled tasks on uninstall of MOD
- Now should remove all groups from forum accounts with only toons that exist on other forum accounts.
- Warning about Openfire Password insecurity.
- Bugfix for API required during Registration.
|

Shin Chogan
Blueprint Haus Get Off My Lawn
59
|
Posted - 2014.05.23 08:41:00 -
[97] - Quote
Tahnil wrote:Hello.
I updated to r6 and now I canGÇÿt switch my preferred character anymore. Any ideas?
Wuppps ... Regression test fail ... I have some customizations in for our board and I forgot to revert one of the bits back to the normal code for release.
New version posted.
|

Shin Chogan
Blueprint Haus Get Off My Lawn
59
|
Posted - 2014.06.04 20:41:00 -
[98] - Quote
Nutbolt wrote:Right I have had this issue for a while now and getting fed up with it. Basically TEA is caching the results of the API and not clearing the cache. So if I empty the smf_tea_cache table in the DB it will go through and re pull everyones api key and deal with permissions correctly, kicking people who left corp etc... However once its done this once for everyone it then won't refresh their API key again. Meaning permissions aren't being updated should someone leave or whatever.
If someone new joins it gets their info fine (as its not cached in the DB). I have no idea why this is happened, it used to work, like a few months ago now, but did used to work.
The TEA_CRON outputs 'Reset lastid to Zero' Any ideas please?
The TEA_Cron outputting Reset lastid to Zero is normal when all of your forum accounts have been checked and it is starting again from the beginning ... if this happens every time you run TEA_Cron then either you have only a few accounts with api keys or there is a problem ... from what you say I'd guess the former.
The code that handles the caching hasn't changed in forever ... so if it used to work then there should be no code reason I can think of why it has stopped ... also it continues to work for me.
I'll take a stab at the problem being somewhere around the lines :
$time = time() - 3600; $this -> smcFunc['db_query']('', "DELETE FROM {db_prefix}tea_cache WHERE time < ".$time);
can you try adding a var_dump($time); after $time = time() - 3600; and seeing what the value is. Also can you look at the time field in your tea_cache database and make sure there is something sensible in there ... it should be a unixtime timestamp (ie seconds since 1970) |

Shin Chogan
Blueprint Haus Get Off My Lawn
59
|
Posted - 2014.06.25 01:39:00 -
[99] - Quote
Michael Mach wrote:Any support for Mumble coming soon? I'd gladly send some ISK your way to get Mumble support - TS licensing is way too stupid.
Probably not ... there is a python ICE authenticator for Mumble that hooks Mumble into the SMF user db. |

Shin Chogan
Blueprint Haus Get Off My Lawn
59
|
Posted - 2014.06.25 01:56:00 -
[100] - Quote
Minibren wrote:Hi, I am having an issue where even if the jabber group is not set to monitor and remove, members are still removed from it.
Unfortunately this is just the way the user service works, the update method takes a list of groups that the user should belong to, this list is constructed from the groups the user belongs to in SMF, so it has no idea about the groups you may have added manually in Openfire ... an update to the Openfire User Service plugin would need to be made before this can be changed.
Quote:
Also when ticking the box to monitor and remove it becomes stuck and your unable to untick it again without deleting the group on the jabber server and recreating it.
Any ideas? It seems a bit broken to me.
I'm not seeing this behaviour I'm afraid ... could it be a browser type problem ? Have you tried clearing cache and cookies ? or perhaps even a different browser ? |
|

Shin Chogan
Blueprint Haus Get Off My Lawn
59
|
Posted - 2014.06.26 08:43:00 -
[101] - Quote
Minibren wrote:Please could someone confirm a few things.
Ok so if I wanted to add specific people to a group on the jabber server then would I have to add them to an additional group on the forum and then set a rule for this, rather than adding them to a group through openfire itself?
Yes
Quote: So as I now understand it the forum task for updating jabber groups basically just removes the user from all groups and then adds them to the ones they are supposed to be in?
Yep. It is just the way the Openfire User Service plugin works - you have to give it a list of all the groups you want the user to belong to not just the ones you want added or removed.
Quote: Now the monitor and remove tickbox thing I am slightly confused about, can someone expain to me its purpose.
Thanks in advance
The language is imprecise but it came from the original author and I've not updated it. Basically you have to do 2 things, 1) you have to say Group X is going to be synchronized with Openfire and 2) you have to give it a mapping between the SMF group and the Openfire group.
If you don't tick the SMF group then the mapping isn't looked at. |

Shin Chogan
Blueprint Haus Get Off My Lawn
60
|
Posted - 2014.07.13 07:56:00 -
[102] - Quote
Minibren wrote:Is there a way to force an update of the alliance corp list? When corps leave the alliance it does not automatically remove them from groups as it says their corp is still in the alliance, its been 2 days and its still not updated.
Edit: Seems to update every 2 days.
A lot of that problem is actually down to CCP ... we found this issue with our new and old corps ... the API data doesn't actually seem to update very frequently. |

Shin Chogan
Blueprint Haus Get Off My Lawn
60
|
Posted - 2014.07.13 07:58:00 -
[103] - Quote
Fisnar Jejrhald wrote:whether it is possible to use mumble instead of team speak?
Look further back in this thread ... short answer ... no.
|

Shin Chogan
Blueprint Haus Get Off My Lawn
60
|
Posted - 2014.07.13 08:00:00 -
[104] - Quote
Fisnar Jejrhald wrote:[ERROR] API is returning invalid XML
Yes that is a nice error message isn't it ... thanks for sharing :)
CCP are not sending you valid XML |

Shin Chogan
Blueprint Haus Get Off My Lawn
60
|
Posted - 2014.07.13 08:03:00 -
[105] - Quote
Fisnar Jejrhald wrote:cheack
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 -ñ-¦-¦-+: /var/www/fisnar/data/www/ailes-grises.ru/Sources/TEA.php -í-é-Ç-+-¦-¦: 2757
At a guess you have no valid api keys in your database ... and have never had any and are trying to run the check all api's job. |
|
|
|